package com.huawei.appmarket.service.appdetail.view.fragment;

import android.app.Activity;
import android.graphics.Rect;
import android.text.TextUtils;
import android.view.View;
import com.huawei.appmarket.service.appdetail.view.AppIntroduceListFragmentProtocol;
import o.eil;
import o.eiq;

public class AppIntroduceListFragment extends AppRecommendFragment<AppIntroduceListFragmentProtocol> implements eiq {
    public void ॱ(Activity activity) {
        super.ॱ(activity);
        if (!TextUtils.isEmpty(this.ʼˊ)) {
            eil.ˋ().ˎ(this.ʼˊ, this);
        }
    }

    public void ॱ(final View view) {
        if (this.ͺˎ != null && view != null) {
            this.ͺˎ.post(new Runnable(this) {
                final /* synthetic */ AppIntroduceListFragment ॱ;

                public void run() {
                    if (this.ॱ.ͺˎ != null) {
                        Rect rect = new Rect();
                        Rect rect2 = new Rect();
                        this.ॱ.ͺˎ.getGlobalVisibleRect(rect);
                        view.getGlobalVisibleRect(rect2);
                        if (rect2.top + view.getHeight() > rect.bottom && rect2.top != rect.top) {
                            this.ॱ.ͺˎ.smoothScrollBy(rect2.top - rect.top, 700);
                        }
                    }
                }
            });
        }
    }

    public void ᐝ() {
        if (!TextUtils.isEmpty(this.ʼˊ)) {
            eil.ˋ().ˊ(this.ʼˊ);
        }
        super.ᐝ();
    }
}
